﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Tomahawk.Runtime.Logic;
using System.Xml.Serialization;

namespace Archetypes.Logic
{
    public class Ball : XObject
    {
        #region "Serializable properties"

        // These properties will be automatically readed from the xml archetype, if
        // one it's specified during the object instantiation

        [XmlElement("Speed")]
        public float Speed;

        [XmlElement("Radius")]
        public float Radius;

        #endregion

        // Constructor are a good place to set default values, for objects that are going
        // to be instantiated without using a template

        public Ball()
        {
            Speed = 0.5f;
            Radius = 1.0f;
        }

    }
}
